<?php
include_once 'library/confirm/NoTandanFilterPost.class.php';

$item = new NoTandanFilterPost();

// FETCHING
$tgl_bagging		=	$_POST['tgl_bagging'];
$no_individu		=	$_POST['no_individu'];
$varietas			=	$_POST['varietas'];
?>
<div class="title">Konfirmasi - Bagging Jantan</div>
<form name="frm_<?=$subbagian;?>" id="frm_<?=$subbagian;?>" method="post" action="index.php?bagian=<?=$bagian;?>&subbagian=<?=$subbagian;?>&action=confirmed">
 <ul>
    	<li class="header"><span>Identitas Individu</span></li>
        <li><span>
            <label>Tanggal Bagging:</label>
            <span class="confirm"><?=$_POST['tgl_bagging'];?></span>
			<input type="hidden" name="tgl_bagging" value="<?=$tgl_bagging;?>" />
       </span></li>
         <li><span>
            <label>No Individu:</label>
            <span class="confirm"><?=$_POST['no_individu'];?></span>
			<input type="hidden" name="no_individu" value="<?=$no_individu;?>" />
        </span></li>
         <li><span>
            <label>Varietas:</label>
            <span class="confirm"><?=$_POST['varietas'];?></span>
			<input type="hidden" name="varietas" value="<?=$varietas;?>" />
        </span></li>
    </ul>
    <ul id="tandan">
		<li class="header"><span>No Tandan</span></li>
		<?php
		$no = 0;	
		foreach($item->no_tandan['no_tandan'] as $i=>$v){
			$no++;
			$nama   = $v;
		?>
		<li><span>
			<label><?=$no;?></label>
			<span class="confirm_no_tandan"><?=$nama;?></span>
			<input type="hidden" id="no_tandan[]" name="no_tandan[]" value="<?=$nama;?>"/>
		</span>
		<?php 
		}
		?>
    </ul>
	</ul>
		<ul>
		<li class="header"><span>Simpan</span></li>
		<li class="button"><span>
			<input type="submit" name="submit" id="submit" value="Simpan Data" class="simpan"/>
			<a class="cancel" href="#" onclick="javascript:history.go(-1);">Batalkan</a>
		</span></li>
	</ul>
</form>